/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software.
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/

package ecarx.xsf.notificationcenter.binders;

import android.os.RemoteException;

import ecarx.xsf.notificationcenter.manager.NotificationDispatchManager;
import ecarx.xsf.notificationcenter.notification.ICardNotificationListener;
import ecarx.xsf.notificationcenter.notification.ILauncherControllerService;
import ecarx.xsf.notificationcenter.notification.INotificationBar;

/**
 * FileName: LauncherControllerProxy.java <br>
 * Description : 形象智能提示接口 <br>
 * Create Time: 2020/03/26 10:01 <br>
 * Update Time: 2021/8/4 11:32 <br>
 *
 * @since 1.0.0
 */
public class LauncherControllerProxy extends ILauncherControllerService.Stub {

    @Override
    public void addNotificationListener(ICardNotificationListener listener) throws RemoteException {
        NotificationDispatchManager.get().register(listener);
    }

    @Override
    public void removeNotificationListener(ICardNotificationListener listener) throws RemoteException {
        NotificationDispatchManager.get().unregister(listener);
    }

    @Override
    public void notifyCardHandleStatus(INotificationBar iNotificationBar, int status) throws RemoteException {
        NotificationDispatchManager.get().notifyCardHandleStatus(iNotificationBar, status);
    }
}
